package com.qf.service.impl;

import com.qf.dao.AccountMapper;
import com.qf.pojo.Account;
import com.qf.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 公用常量
 * @Data: 2022/9/6 18:50
 * @Pacakge: com.qf.service.impl
 * @ClassName: AccountServiceImpl
 * @Author: fan
 */
@Service
public class AccountServiceImpl implements AccountService {
    public AccountServiceImpl(){
        System.out.println("业务层初始化");
    }
    @Autowired
    private AccountMapper accountDao;

    /**
     * 查询所有账户
     * @return 账户列表
     */
    @Override
    public List<Account> findAccount() {
        List<Account> accounts = accountDao.findAccount();
        return accounts;
    }
}
